home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / dot_effects_scripts / dot_shot_ball.lua next >
Encoding:
Text File  |  2007-01-25  |  3.2 KB  |  122 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_DOTSHOT_BALL)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = true
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "dot_effect_fireball.dds"
  31.  
  32. PT.ParticlesPerSecond = 4.0;
  33. PT.InitialNumberOfParticles = 1.0;
  34. PT.BaseLifeTime = 1.3;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 0.0;
  37. PT.BaseSpeedVariance = 0.0;
  38. PT.BaseAngle = 1.65;
  39. PT.BaseAngleVariance = 0.0;
  40. PT.BaseAngleSpeed = 0.0;
  41. PT.BaseAngleSpeedVariance = 0.0;
  42. PT.BaseAngleSpeedDirection = 0;
  43. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,1.0)
  44. PT.BaseDirection = vzbzd4
  45. vzbzd4:delete()
  46. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  47. PT.BaseDirectionVariance = vzbzd5
  48. vzbzd5:delete()
  49. local vzbzd6 = D3DXVECTOR3:new(0,0,0)
  50. PT.BasePosition = vzbzd6
  51. vzbzd6:delete()
  52. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  53. PT.BasePositionVariance = vzbzd7
  54. vzbzd7:delete()
  55. PT.BaseSize = 3.0;
  56. PT.BaseSizeVariance = 0.0;
  57.  
  58. -- color over time
  59. PT.ColorOverTimeR[1].TimePercent = 0.0;
  60. PT.ColorOverTimeR[1].Value = 0.0;
  61. PT.ColorOverTimeG[1].TimePercent = 0.0;
  62. PT.ColorOverTimeG[1].Value = 0.0;
  63. PT.ColorOverTimeB[1].TimePercent = 0.0;
  64. PT.ColorOverTimeB[1].Value = 0.0;
  65.  
  66. PT.ColorOverTimeR[2].TimePercent = 1.0;
  67. PT.ColorOverTimeR[2].Value = 0.5;
  68. PT.ColorOverTimeG[2].TimePercent = 1.0;
  69. PT.ColorOverTimeG[2].Value = 0.5;
  70. PT.ColorOverTimeB[2].TimePercent = 1.0;
  71. PT.ColorOverTimeB[2].Value = 0.5;
  72.  
  73. -- transparency over time
  74. PT.TransparencyOverTime[1].TimePercent = 0.0;
  75. PT.TransparencyOverTime[1].Value = 0.5;
  76.  
  77. PT.TransparencyOverTime[2].TimePercent = 1.0;
  78. PT.TransparencyOverTime[2].Value = 1.0;
  79.  
  80.  
  81. -- size over time
  82. PT.SizeOverTime[1].TimePercent = 0.0;
  83. PT.SizeOverTime[1].Value = 1.0;
  84.  
  85. PT.SizeOverTime[2].TimePercent = 1.0;
  86. PT.SizeOverTime[2].Value = 1.0;
  87.  
  88.  
  89. -- Speed over time
  90. PT.SpeedOverTime[1].TimePercent = 0.0;
  91. PT.SpeedOverTime[1].Value = 0.0;
  92.  
  93. PT.SpeedOverTime[2].TimePercent = 1.0;
  94. PT.SpeedOverTime[2].Value = 0.0;
  95.  
  96. -- Tangent Speed over time
  97. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  98. PT.TangentSpeedOverTime[1].Value = 0.0;
  99.  
  100. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  101. PT.TangentSpeedOverTime[2].Value = 0.0;
  102.  
  103.  
  104. -- GravityAcceleration over time
  105. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  106. PT.GravityAccelerationOverTime[1].Value = 0.0;
  107.  
  108. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  109. PT.GravityAccelerationOverTime[2].Value = 0.0;
  110.  
  111. -- AngleSpeed over time
  112. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  113. PT.AngleSpeedOverTime[1].Value = 2.5;
  114.  
  115. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  116. PT.AngleSpeedOverTime[2].Value = 0.5;
  117.  
  118.  
  119. --
  120. -- end particle system description
  121. --
  122.